package org.ISCS.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.ISCS.entity.Dockerhub;
import org.ISCS.service.DockerhubService;
import org.ISCS.mapper.DockerhubMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author mj
* @description 针对表【dockerhub】的数据库操作Service实现
* @createDate 2023-05-24 14:56:50
*/
@Service
public class DockerhubServiceImpl extends ServiceImpl<DockerhubMapper, Dockerhub>
    implements DockerhubService{

    @Autowired
    DockerhubMapper dockerhubMapper;

    @Override
    public int insertDockerHubInfo(Dockerhub dockerhub) {
        int id = dockerhubMapper.insert(dockerhub);
        return id;
    }

    @Override
    public int updateDockerHubInfo(Dockerhub dockerhub) {
        int id = dockerhubMapper.updateById(dockerhub);
        return id;
    }
}




